package com.devinlee.designpatterns.factory.abstract_factory.factory;

import com.devinlee.designpatterns.factory.abstract_factory.product.Bugatti;
import com.devinlee.designpatterns.factory.abstract_factory.product.Car;
import com.devinlee.designpatterns.factory.abstract_factory.product.HuaWei;
import com.devinlee.designpatterns.factory.abstract_factory.product.Phone;

/**
 * 抽象工厂模式-具体工厂类
 */
public class FushikangFactory implements Factory{

    private String factoryName = "富士康工厂";

    @Override
    public Car createCar() {
        return new Bugatti(factoryName);
    }

    @Override
    public Phone createPhone() {
        return new HuaWei(factoryName);
    }
}
